package com.gejingyu.spring.beanMap;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestStu {

    @Test
    public void testStu(){
        ApplicationContext context =
                new ClassPathXmlApplicationContext("beanMap.xml");
        Student student = (Student) context.getBean("student");
        student.run();
    }
}
